package com.xuwei.base.annotation;

@MyAnnotation
public class AnnotationTest {
	@SuppressWarnings("deprecation")
	public static void main(String[] args) throws Exception {
		System.runFinalizersOnExit(true);

		if (AnnotationTest.class.isAnnotationPresent(MyAnnotation.class)) {
			MyAnnotation annotation = (MyAnnotation) AnnotationTest.class
					.getAnnotation(MyAnnotation.class);
//			System.out.println(annotation.color());
//			System.out.println(annotation.value());
//			System.out.println(annotation.arrayAttr().length);
//			System.out.println(annotation.lamp().nextLamp().name());
//			System.out.println(annotation.annotationAttr().value());
		}

	}

	@Deprecated
	public static void sayHello() {

	}

}
